tools/ocaml/xenstored: introduce permissions for special watches
authorEdwin Török <edvin.torok@citrix.com>
Tue, 15 Dec 2020 11:28:56 +0000 (12:28 +0100)
committerHans van Kranenburg <hans@knorrie.org>
Tue, 15 Dec 2020 11:28:56 +0000 (12:28 +0100)
commitd76d92eb78212fc668c3c8d572b7cfc1692a9274
tree1c4f8e9516f0cdf3a74608432dca690b6cfb5245
parentd870735c70af3c8ae40bf85995142985d0119119
tools/ocaml/xenstored: introduce permissions for special watches

The special watches "@introduceDomain" and "@releaseDomain" should be
allowed for privileged callers only, as they allow to gain information
about presence of other guests on the host. So send watch events for
those watches via privileged connections only.

Start to address this by treating the special watches as regular nodes
in the tree, which gives them normal semantics for permissions.  A later
change will restrict the handling, so that they can't be listed, etc.

This is part of XSA-115.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/ocaml/xenstored/process.ml
tools/ocaml/xenstored/store.ml
tools/ocaml/xenstored/utils.ml
tools/ocaml/xenstored/xenstored.ml